<?php

class Form_User_Signup extends Form
{
	function init()
	{
		$this -> addChild('text', 'displayname', array('label' => 'displayname'));
		$this -> addChild('text', 'username', array('label' => 'username'));
		$this -> addChild('text', 'email', array('label' => 'email'));
		$this -> addChild('text', 'password', array('label' => 'password'));
		$this -> addChild('text', 'password2', array('label' => 'confirm password'));

		$this -> addChild('gender', 'gender', array('label' => 'gender'));
		$this -> addChild('group', '_buttons');
		$this -> _buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
